package com.demo.resourcecode.c14boot;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class CacheableAdvice {

	@Pointcut("@annotation(com.demo.resourcecode.c14boot.Cacheable)")
	public void annoAspce() {
	}

	@Around("annoAspce()")
    public Object doAround(ProceedingJoinPoint joinpoint) throws Throwable {
        Object result = null;
		try{
			result = joinpoint.proceed();
		}catch(Exception e){
			e.printStackTrace();
		}
		return result;
	}

}
